// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import store from './store/store.js'
import './common/request.js'

import share from "./common/share.js"


import uView from "uview-ui";
Vue.use(uView);
Vue.mixin(share)

Vue.prototype.$store = store
Vue.config.productionTip = false

Vue.prototype.toPage = (path) => {
	if (path) {
		uni.navigateTo({
			url: path
		})
	} else {
		return uni.$showMsg('功能敬请期待')
	}
},
App.mpType = 'app'

const app = new Vue({
	store,
	...App,
	share
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif